package com.ruoyi.bill.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 端口财务台账业务对象 bill_finance_port
 *
 * @author linziheng
 * @date 2024-03-13
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class BillFinancePortBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 时间
     */
    @NotNull(message = "时间不能为空", groups = { AddGroup.class, EditGroup.class })
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date paymentDate;

    /**
     * 金额
     */
    @NotNull(message = "金额不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal amount;

    /**
     * 收款人
     */
    @NotBlank(message = "收款人不能为空", groups = { AddGroup.class, EditGroup.class })
    private String payee;

    /**
     * 付款人
     */
    @NotBlank(message = "付款人不能为空", groups = { AddGroup.class, EditGroup.class })
    private String payer;

    /**
     * 状态
     */
    private String checkType;

    /**
     * 备注
     */
    private String remark;


}
